<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改员工排班')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-paibanTest-edit" th:object="${paiban}">
<!--            <input name="id" th:field="*{id}" type="hidden">-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">日期：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <div class="input-group date">-->
<!--                        <input name="date" th:value="${#dates.format(paiban.date, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
<!--                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
<!--                    </div>-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">姓名：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="yuangongName" th:field="*{yuangongName}" class="form-control" type="text" onfocus="this.blur()">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label">班次：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="banci" th:field="*{banci}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">备注：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="beizhu" th:field="*{beizhu}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
            <div id="year" hidden th:value="${session.get('year')}"></div>
            <div id="month" hidden th:value="${session.get('month')}"></div>
            <div id="day" hidden th:value="${session.get('day')}"></div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "paiban/paibanTest";


        $(function() {
            var options = {
                url: prefix + "/list2oneDay",
                modalName: "员工排班",
                columns: [{
                    // checkbox: true
                },
                    {
                        field: 'id',
                        title: '编号',
                        visible: false
                    },
                    {
                        field: 'yuangongName',
                        title: '员工姓名'
                    },
                    {
                        field: 'date',
                        title: '日期'
                    },
                    {
                        field: 'banci',
                        title: '班次',
                        visible: false
                    },
                    {
                        field: 'qiandaoStatus',
                        title: '签到状态',
                        // visible: false
                    },
                    {
                        field: 'beizhu',
                        title: '备注',
                        visible: false
                    }]
            };
            $.table.init(options);
        });
        // $("#form-paibanTest-edit").validate({
        //     focusCleanup: true
        // });

        // function submitHandler() {
        //     if ($.validate.form()) {
        //         $.operate.save(prefix + "/edit", $('#form-paibanTest-edit').serialize());
        //     }
        // }

        // $("input[name='date']").datetimepicker({
        //     format: "yyyy-mm-dd",
        //     minView: "month",
        //     autoclose: true
        // });
    </script>
</body>
</html>